loose cannon
noun
°(nautical) a cannon that breaks loose during battle or a storm and causes serious damage to the ship and its crew.
°(idiom by extension) an uncontrolled or unpredictable person who causes damage to his own faction, political party etc.